import { type Ref, ref } from "vue";

export function useRole(treeRef: Ref) {
  const loading = ref(false);
  const dataList = ref([
    {
      id: "789789789789",
      name: "XXXXXXXXX",
      amount: 12.5,
      status: "今日开销"
    }
  ]);

  const columns = [
    {
      label: "账户名称",
      prop: "name",
      minWidth: 160
    },
    {
      label: "账户ID",
      prop: "id",
      minWidth: 160
    },
    {
      label: "金额",
      prop: "amount",
      minWidth: 100
    },
    {
      label: "状态",
      prop: "status",
      minWidth: 100
    }
  ];

  return {
    loading,
    columns,
    dataList
  };
}
